﻿#if($msg)
<script>
alert('$!msg');
</script>
#end
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>静态化</title>
<link href="/include/manage/images/main/style.css" rel="stylesheet" type="text/css" />
<link href="/include/manage/dialog/asyncbox.css" type="text/css" rel="stylesheet" />
<script language="javascript" src="/include/manage/js/jquery.js"></script>
<script language="javascript" src="/include/manage/js/AsyncBox.js"></script>
<script language="javascript">
jQuery.ajaxSetup ({
	cache: false
});

$(function(){
	$('#gensite').click(function(){
		asyncbox.open({
			title : '生成站点',
			url : '/include/manage/generate_site.jsp?sid=$!site.id',
			width : 400,
			height : 300,
			tipsbar:{
				title : '生成站点静态文件',
				content : '注意：仅当使用网站静态化时，此功能才有效，生成过程中请不要关闭窗口'
				},
		　　btnsbar : jQuery.btn.OK,
		　　callback : function(action,iframe){
		　　　}
		});
	});
	
	$('#copyskin').click(function(){
		asyncbox.open({
			title : '更新样式',
			url : '/include/manage/copy_skin.jsp?sid=$!site.id',
			width : 400,
			height : 300,
			tipsbar:{
				title : '更新网站样式文件',
				content : '注意：仅当使用网站静态化时，此功能才有效，更新过程中请不要关闭窗口'
				},
		　　btnsbar : jQuery.btn.OK,
		　　callback : function(action,iframe){
		　　　}
		});
	});
	
});
</script>
</head>
<body>
<form id="delform" name="delform" action="/manage_static.ad" method="post">
	<input type="hidden" name="parameter" value="delete" />
	<input type="hidden" id="deleteid" name="id" value="" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="/include/manage/images/main/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="/include/manage/images/main/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="/include/manage/images/main/tb.gif" width="16" height="16" /></div></td>
                <td width="95%"><span class="STYLE3">当前位置</span>：[模板管理]-[静 态 化]</td>
              </tr>
            </table></td>
            <td width="54%"><table border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
								<td></td>
                <!--td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><a href="/manage_static.ad?parameter=summary"><img src="/include/manage/images/main/22.gif" width="14" height="14" /></a></div></td>
                    <td><div align="center"><a href="/manage_static.ad?parameter=summary">概要</a></div></td>
                  </tr>
                </table></td>
                <td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><a href="/manage_static.ad?parameter=user"><img src="/include/manage/images/main/11.gif" width="14" height="14" /></a></div></td>
                    <td><div align="center"><a href="/manage_static.ad?parameter=user">频率</a></div></td>
                  </tr>
                </table></td>
								<td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><a href="/manage_static.ad?parameter=type"><img src="/include/manage/images/main/11.gif" width="14" height="14" /></a></div></td>
                    <td><div align="center"><a href="/manage_static.ad?parameter=type">进度</a></div></td>
                  </tr>
                </table></td-->
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="/include/manage/images/main/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>
		#if($site.html==0)
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="/include/manage/images/main/tab_12.gif">&nbsp;</td>
        <td align="center">
				<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
					<tr>
						<td colspan="3" height="20" bgcolor="#FFFFFF">
						<strong style="color:gray">站点未开启静态化功能</strong>
						</td>
					</tr>
					  <tr>
					<td height="20" bgcolor="#FFFFFF">样式文件夹</td>
					<td bgcolor="#FFFFFF">WEB-INF/templates/web/$!site.template/skin/* >> /skin/*</td>
					<td bgcolor="#FFFFFF">
						<input id="copyskin" type="button" value="更新样式" />
					</td>
				</tr>
				</table>
				</td>
        <td width="8" background="/include/manage/images/main/tab_15.gif">&nbsp;</td>
      </tr>
    </table>
		#else
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="/include/manage/images/main/tab_12.gif">&nbsp;</td>
        <td>
				<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
				<tr>
					<td height="20" bgcolor="#FFFFFF">
						<h3>$!site.name</h3>
					</td>
					<td bgcolor="#FFFFFF">
						<a href="/html/$!{site.pub_dir}/index.htm" target="_blank">[预览]</a>
						#if($site.big5==1)
						<a href="/html/$!{site.pub_dir}/big5/index.htm" target="_blank">[预览繁体]</a>
						#end
					</td>
				</tr>
				<tr>
					<td colspan="2" bgcolor="#FFFFFF">
						<p>注意：静态化能加快网站访问速度，但一些互动功能将不可使用</p>
					</td>
				</tr>
				</table>
				<br/>
				<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
		<tr>
    <td width="150" height="22" background="/include/manage/images/main/bg.gif"><div align="center">显示条目</div></td>
		<td background="/include/manage/images/main/bg.gif"><div align="center">生成地址</div></td>
    <td width="200" background="/include/manage/images/main/bg.gif"><div align="center">操 作</div></td>
  </tr>
  <tr> 
	<td height="20" bgcolor="#FFFFFF">首页</td>
	<td bgcolor="#FFFFFF">
    	#if($site.index)
        	$!site.index
        #else
        	index.htm
        #end
    </td>
	<td bgcolor="#FFFFFF">
		<a href="/manage_static.ad?parameter=genIndex&sid=$!site.id">生成首页</a>
	</td>
  </tr>
  <tr>
    <td height="20" bgcolor="#FFFFFF">全站</td>
		<td bgcolor="#FFFFFF">/${seo}/${seo}.htm</td>
    <td bgcolor="#FFFFFF">
			<input id="gensite" type="button" value="生成全站" />
		</td>
  </tr>
  <tr>
    <td height="20" bgcolor="#FFFFFF">样式文件夹</td>
		<td bgcolor="#FFFFFF">WEB-INF/templates/web/$!site.template/skin/* >> /html/$!site.pub_dir/skin/*</td>
    <td bgcolor="#FFFFFF">
			<input id="copyskin" type="button" value="更新样式" />
		</td>
  </tr>
  </table></td>
        <td width="8" background="/include/manage/images/main/tab_15.gif">&nbsp;</td>
      </tr>
    </table>		
		#end
		</td>
  </tr>
  <tr>
    <td height="35" background="/include/manage/images/main/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="/include/manage/images/main/tab_18.gif" width="12" height="35" /></td>
        <td>&nbsp;</td>
        <td width="16"><img src="/include/manage/images/main/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
</html>